{% extends 'base_authed.html' %}

{% block title %}个人主页{% endblock %}
{% block js %}
<script type="text/javascript" src="/site_media/js/control.js"></script>
<script type="text/javascript">
	window.addEvent('domready', function(){
		new TextInput('status', '您在做什么？', 'red');
	});
</script>
<style type="text/css">
	#status{
		color:blue;
	}
</style>
{% endblock %}

{% block content %}
<div>
	<a href="/accounts/editpicture/"><img src="{{ user.get_profile.get_big_logo }}" /></a>
	<h2>{{ user.get_full_name }}</h2>&nbsp;<i>{{ user.get_profile.status }}.</i>{{ user.get_profile.last_update_status|date:"Y-m-d H:i" }}
	<div>
		<form id="statusForm" method="post" action="/updatestatus/">
		更新状态：<input type="text" id="status" name="status" />
		<button type="submit">发布</button>
	</div>
</div>
{% endblock %}